package com.ctshk.rpc.hotel.entity.es;

import com.ctshk.common.constant.ElasticSearchConstant;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 酒店列表dto
 * </p>
 */
@Data
@ApiModel(description="酒店产品列表dto")
@Document(indexName = ElasticSearchConstant.HOTEL_SEARCH_INDEX)
public class HotelSearchEs implements Serializable {

    private static final long serialVersionUID = -5150790249577918411L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "酒店品牌")
    private String brandName;

    @ApiModelProperty(value = "酒店名称-中文")
    private String name;

    @ApiModelProperty(value = "酒店名称-英文")
    private String enName;

    @ApiModelProperty(value = "城市ID")
    private Long cityId;

    @ApiModelProperty(value = "城市名称")
    private String cityName;

    @ApiModelProperty(value = "详细地址", example = "宝安区宝安大道5010号（地铁1号线后瑞地铁站A出口）")
    private String location;

    @ApiModelProperty(value = "酒店位置ID")
    private Long businessDistrictId;

    @ApiModelProperty(value = "酒店位置名称", example = "金钟")
    private String businessDistrictName;

    @ApiModelProperty(value = "酒店位置描述", example = "距離中環300米")
    private String locToDistrictDistance;

    @ApiModelProperty(value = "酒店星级", example = "5")
    private Integer starLevel;

    @ApiModelProperty(value = "酒店星级说明", example = "五星級/豪華型")
    private String starLevelExplain;

    @ApiModelProperty(value = "封面图片地址")
    private String coverMap;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @JsonIgnore
    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @JsonIgnore
    @ApiModelProperty(value = "服务费类型(1 数值 2 百分比)", hidden = true)
    private Integer reserveChargeType;
    @JsonIgnore
    @ApiModelProperty(value = "服务费", hidden = true)
    private BigDecimal reserveCharge;

    @JsonIgnore
    @ApiModelProperty(value = "加幅类型(1 数值 2 百分比)", hidden = true)
    private Integer increaseType;
    @JsonIgnore
    @ApiModelProperty(value = "加幅价", hidden = true)
    private BigDecimal increasePrice;

}
